#ifndef __BUF__
#define __BUF__

#define MAX_BUF_SIZE 1024

typedef struct{
    unsigned char buf[MAX_BUF_SIZE];
    short len;
    char is_ready;
}BUF;

void reset_buf(BUF *pbuf);

char buf_is_ready(BUF *pbuf);

void set_buf_ready(BUF *pbuf);

#endif

